<admintpl file="header" />
</head>
<body>
<div class="wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a>用户积分明细</a></li>
    </ul>
    <form class="well form-search" method="post" action="{:U('Finance/user_points_list')}">
        用户电话：<input type="text" name="mobile" style="width: 100px;" value="{$formget.mobile}">
        <input type="submit" class="btn btn-primary" value="搜索" />
    </form>
    <form method="post" class="js-ajax-form">
       <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th align="center">序号</th>
                <th>用户姓名</th>
                <th>用户电话</th>
                <th>积分类型</th>
                <th>积分值</th>
                <th>备注</th>
                <th>积分时间</th>
            </tr>
            </thead>
            <tbody>
            <foreach name="datas" item="vo" key="k">
                <tr> 
                    <td align="center">{$k+1}</td>
                    <td>{$vo.user_name}</td>
                    <td>{$vo.mobile}</td>
                    <php> $type=array(1=>"订单",2=> "充值");</php>
                    <td>{$type[$vo['points_type']]}</td>
                    <td>{$vo.points_value}</td>
                    <td>{$vo.remark}</td>
                    <td>{$vo.points_time}</td>
                </tr>
            </foreach>
            </tbody>
        </table>
        <if condition="empty($datas)">
            <div style="padding: 30px;text-align: center;color: #999999">
                <i class="fa fa-database" style="font-size: 38px"></i><br />
                暂无数据
            </div>
        </if>
        <div class="pagination">{$page}</div>
    </form>
</div>
<script src="__PUBLIC__/js/common.js"></script>

</body>
</html>